public class StartBloodworkEvent extends EventBase {

	public int duration;
	
	public StartBloodworkEvent(PatientBase patient, Nurse nurse) {
		super(patient);
		duration = 45;		///PLACE DISTRIBUTION HERE
		this.eventNurse = nurse;

	}

	public void execute() {
		super.execute();
		eventNurse.setStatus(true);
		
		EventBase event =  new EndBloodworkEvent(eventPatient, eventNurse);
		event.scheduledTime = Simulator.getCurrentTime() + duration;
		
		eventPatient.timeArray[5]=Simulator.getCurrentTime();
		eventNurse.setNextDecisionPoint(event.scheduledTime);
		
		int idletime = (Simulator.getCurrentTime() - eventNurse.getLastStatusChange());
		eventNurse.addIdleTime(idletime);
		eventNurse.setLastStatusChange(Simulator.getCurrentTime());
		Simulator.addEvent(event);
	}
}
